namespace BunnyEater.Service.SystemManagementService.UserService.Dto
{
    /// <summary>
    /// 用户角色权限数据传输对象
    /// </summary>
    public class UserRolePermissionDto
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 用户账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 用户角色列表
        /// </summary>
        public List<RoleWithPermissionsDto> Roles { get; set; }
    }

    /// <summary>
    /// 角色及其权限数据传输对象
    /// </summary>
    public class RoleWithPermissionsDto
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        public string RoleId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleNmae { get; set; }
        /// <summary>
        /// 角色权限列表
        /// </summary>
        public List<PermissionDto> Permissions { get; set; }
    }

    /// <summary>
    /// 权限数据传输对象
    /// </summary>
    public class PermissionDto
    {
        /// <summary>
        /// 权限Id
        /// </summary>
        public string PermissionsId { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionsName { get; set; }
        /// <summary>
        /// 权限路径
        /// </summary>
        public string PermissionsPath { get; set; }
    }
}